<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title>攀枝花移动投票平台</title>
<meta content="" name="Keywords" />
<link href="/webvote/public/style/css.css" rel="stylesheet" type="text/css" />
<link  rel ="stylesheet"  type ="text/css"  href ="/webvote/pages/ext/resources/css/ext-all.css" /> 
<script  type ="text/javascript"  src ="/webvote/pages/ext/adapter/ext/ext-base.js" ></script> 
<script  type ="text/javascript"  src ="/webvote/pages/ext/ext-all.js" ></script> 
<script type="text/javascript" src="/webvote/pages/js/vote.js"></script>
<script type="text/javascript" src="/webvote/pages/js/jquery-1.3.1.js"></script>
</head>

<body>
<div id="globalWrapper">
<div id="header">
     <div class="banner"><img src="/webvote/public/images/indexass.jpg" /></div> 
</div>
<div id="mainMenu">
     <div class="navrw fl"><img src="/webvote/public/images/index_rw.gif" /></div> 
</div>
<div id="wrapper">
    <div class="listrw">
    <c:forEach var="vi" items="${vis}">
    <dl>
    <dt><a href="/webvote/vote.do?action=getvoterUI&viid=${vi.viId}"><img src="/webvote/upload/${vi.viImgpath}" /></a></dt>
    <dd>
    <ul>
    <li class="z_name"><b>${vi.typeinfo.tiName}</b></li>
    <li class="x_name">姓名：${vi.viName}</li>
    <li class="txt"><!-- 简介 -->
                     <c:set var="testpa" value="${vi.viIntro}" />
    				 <c:choose>
									<c:when test="${fn:length(testpa) > 25}">
									     ${fn:substring(testpa, 0, 25)}...
									</c:when>
									<c:otherwise>
										${vi.viIntro}
									</c:otherwise>
		 			 </c:choose><span>
		 			 <a href="/webvote/vote.do?action=getvoterUI&viid=${vi.viId}">详细>></a></span></li>
    <li class="tp"><div class="ps">票数：${vi.viTimes}</div><div class="bot_tp"><a href="javascript:voteUI('${vi.viId}')"></a></div></li>
    </ul>
    </dd>
    </dl>
    </c:forEach>
    </div>             
</div>
<div id="footer">
     中国移动通信集团四川移动有限公司攀枝花分公司<span>技术支持：攀枝花移动分公司集团客户部产品中心</span> 
</div>
</div>
</body>
</html>
